package com.feituan.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 基础实体类
 *
 * @author liuli
 * @date 2024/05/09
 * @version 0.0.1
 */
@Data
@EqualsAndHashCode
public abstract class BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Date createTime;

//    private LocalDateTime updateTime;
//
//    @TableLogic(value = "0", delval = "1")
//    private Integer isDeleted = 0;
}
